home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 9 / cdrt09.iso / mac / wrath demo / Wrath 50 / Clashing Rocks / 00001_Script_1 next >
Text File  |  1995-01-13  |  14KB  |  617 lines

  1. -- ò global sets:  tack30a, crash30a, Prow30a, o30a
  2.  
  3. on killlogo
  4.   if the mouseDown then
  5.     go "in w"
  6.   end if
  7.   
  8. on setLocal
  9.   -- nothing
  10.   
  11. on killLocal
  12.   -- nothing
  13.   
  14. on OrSend  
  15.   global currentGems, firstOr, o30a, orCount
  16.   if currentGems = 0 then
  17.     if firstOr = 0 then
  18.       set firstOr = 1
  19.       set orCount = 1
  20.       goOr "oQ0" 
  21.     else if firstOr = 1 then
  22.       goOr "oQ5"  
  23.     end if
  24.   else if currentGems > 0 then
  25.     if firstOr = 0 then
  26.       set firstOr = 1
  27.       set orCount = 1
  28.       goOr "oQ0"
  29.     else if firstOr = 1 then
  30.       if o30a < 2 then
  31.         if orCount = 0 then
  32.           set orCount = 1
  33.           goOr "oQ1"
  34.         else if orCount = 1 then
  35.           set orCount = 2
  36.           goOr "oQ2"
  37.         else if orCount = 2 then
  38.           set orCount = 0
  39.           goOr "oQ3"
  40.         end if
  41.       else if o30a = 2 then
  42.         goOr "oQ4"  
  43.       else if o30a = 3 then
  44.         goOr "endO"  
  45.       end if
  46.                 end if
  47.   end if
  48.   
  49. on hintSet  
  50.   global o30a, Prow30a, gotTack30a
  51.   puppetSprite 8, true  
  52.   puppetSprite 9, true
  53.   puppetSprite 10, true
  54.   if o30a = 0 then
  55.     set the castnum of sprite 8 to the number of cast "freebie"
  56.   else if o30a = 1 then
  57.     if gotTack30a = 0 then
  58.                       set the castnum of sprite 8 to the number of cast "hint1a"
  59.     else
  60.                       set the castnum of sprite 8 to the number of cast "hint1b"
  61.     end if
  62.   else if o30a = 2 then
  63.                 set the castnum of sprite 8 to the number of cast "hint2"
  64.     set the castnum of sprite 9 to the number of cast "upAr"
  65.   else if o30a = 3 then
  66.                 set the castnum of sprite 8 to the number of cast "hint3"
  67.     set the castnum of sprite 9 to the number of cast "upAr"
  68.   end if
  69.   
  70. on killOrPup 
  71.   puppetSprite 8, false  
  72.   puppetSprite 9, false
  73.   puppetSprite 10, false
  74.   
  75. on hint  
  76.   global o30a, Prow30a, gotTack30a
  77.   if o30a = 0 then
  78.     calcScore - 5
  79.     set o30a = 1
  80.     if gotTack30a = 0 then
  81.                       set the castnum of sprite 8 to the number of cast "hint1a"
  82.     else
  83.                       set the castnum of sprite 8 to the number of cast "hint1b"
  84.     end if
  85.   else if o30a = 1 then
  86.     calcScore - 5
  87.     set o30a = 2
  88.     set the castnum of sprite 8 to the number of cast "hint2"
  89.     set the castnum of sprite 9 to the number of cast "upAr"
  90.     set the castnum of sprite 10 to 0
  91.   else if o30a = 2 then
  92.     calcScore - 5
  93.                 set o30a = 3
  94.                 set the castnum of sprite 8 to the number of cast "hint3"
  95.     set the castnum of sprite 9 to the number of cast "upAr"
  96.     set the castnum of sprite 10 to 0
  97.   end if
  98.   
  99. on upArrow  
  100.   global o30a, Prow30a, gotTack30a
  101.   if o30a = 2 then
  102.     set the castnum of sprite 9 to 0
  103.     set the castnum of sprite 10 to the number of cast "downAr" 
  104.     if gotTack30a = 0 then
  105.                       set the castnum of sprite 8 to the number of cast "hint1a"
  106.     else
  107.                       set the castnum of sprite 8 to the number of cast "hint1b"
  108.     end if
  109.   else if o30a = 3 then
  110.                 if the castnum of sprite 8 = the number of cast "hint3" then
  111.       set the castnum of sprite 8 to the number of cast "hint2"
  112.       set the castnum of sprite 9 to the number of cast "upAr"
  113.       set the castnum of sprite 10 to the number of cast "downAr" 
  114.     else if the castnum of sprite 8 = the number of cast "hint2" then
  115.       set the castnum of sprite 9 to 0
  116.       set the castnum of sprite 10 to the number of cast "downAr" 
  117.       if gotTack30a = 0 then
  118.                             set the castnum of sprite 8 to the number of cast "hint1a"
  119.       else
  120.                             set the castnum of sprite 8 to the number of cast "hint1b"
  121.       end if 
  122.     end if
  123.   end if
  124.   
  125. on downArrow  
  126.   global o30a, Prow30a
  127.   if o30a = 2 then
  128.     set the castnum of sprite 8 to the number of cast "hint2"
  129.     set the castnum of sprite 9 to the number of cast "upAr"
  130.     set the castnum of sprite 10 to 0
  131.   else if o30a = 3 then
  132.                 if the castnum of sprite 8 = the number of cast "hint1a"¼
  133.                 or the castnum of sprite 8 = the number of cast "hint1b" then
  134.       set the castnum of sprite 8 to the number of cast "hint2"
  135.       set the castnum of sprite 9 to the number of cast "upAr"
  136.       set the castnum of sprite 10 to the number of cast "downAr" 
  137.                 else if the castnum of sprite 8 = the number of cast "hint2" then
  138.       set the castnum of sprite 8 to the number of cast "hint3"
  139.       set the castnum of sprite 9 to the number of cast "upAr"
  140.       set the castnum of sprite 10 to 0
  141.     end if
  142.       end if
  143.   
  144. on bk
  145.   global mode
  146.   if mode = 3 then   
  147.     lookitem "Looks like Greece"
  148.   end if
  149.   
  150. on you
  151.   global mode
  152.   if mode = 3 then   
  153.     nothing
  154.   end if
  155.   
  156.   
  157.   
  158. on gags
  159.   global Prow30a
  160.   if Prow30a = 0 then
  161.     set Prow30a = 1
  162.     go "Q5"
  163.   else if Prow30a = 1 then
  164.     set Prow30a = 2
  165.     go "Q7"
  166.   else if Prow30a = 2 then
  167.     set Prow30a = 4
  168.     go "Q8"
  169.   else if Prow30a = 4 then
  170.     set Prow30a = 7
  171.     go "Q9"
  172.   else if Prow30a = 7 then
  173.     set Prow30a = 8
  174.     go "Q6"
  175.   else if Prow30a = 8 then
  176.     go "Q6"
  177.   end if
  178.   
  179.   
  180.   
  181. on earlyGag  
  182.   go "boat" 
  183.   
  184.   
  185. on w1
  186.   global mode
  187.   if mode = 3 then   
  188.     bk
  189.   end if
  190.   
  191. on w2
  192.   global mode, cont, tack30a
  193.   if mode = 0 then
  194.     go "w*barrel"
  195.   else if mode = 1 then
  196.     if tack30a = 0 then
  197.       set cont = 1
  198.       go "w*barrel"
  199.     else if tack30a > 0 then
  200.       lookitem "The barrel is empty"
  201.     end if            
  202.   else if mode = 3 then
  203.     if tack30a > 0 then
  204.       lookitem "The barrel is empty"
  205.     else  
  206.       lookitem "Looks like a barrel of hardtack"
  207.     end if
  208.   end if
  209.   
  210. on cw2
  211.   global cont
  212.   if cont = 1 then
  213.     set cont = 0
  214.     go "get hardtack"
  215.   end if
  216.   
  217. on c2w2  -- "get hardtack"
  218.   global tack30a, gotTack30a
  219.   set tack30a = 1
  220.   set gotTack30a = 1
  221.   addInventory "h30a"
  222.   
  223. on w3
  224.   global mode
  225.   if mode = 1 then
  226.     doSound "30AA12"
  227.   else if mode = 3 then   
  228.     lookitem "Looks like a bell"
  229.   end if
  230.   
  231. on w4
  232.   global mode, cont
  233.   if mode = 2 then
  234.     set cont = 1
  235.     go "w*boat"
  236.   else if mode = 3 then   
  237.     lookitem "Looks like a sailor"
  238.   end if
  239.   
  240. on cw4  -- "w*boat", "barrel*boat"
  241.   global cont, crash30a, Prow30a
  242.   if cont = 1 then 
  243.     set cont = 0
  244.     if crash30a < 2 then   
  245.       go "Q1"
  246.     else if crash30a > 1 and crash30a < 20 then
  247.       go "Q3"
  248.     else
  249.       go "Q4"
  250.     end if
  251.   else if cont = 2 then  
  252.     set cont = 0
  253.     gags
  254.   else if cont = 3 then  
  255.     set cont = 0
  256.     go "shoo bird"
  257.   else if cont = 4 then
  258.     set cont = 0
  259.     doSound "grabInventory"
  260.     go "feed bird"
  261.   else if cont = 5 then
  262.     set cont = 0
  263.     doSound "grabInventory"
  264.     go "throw cake"
  265.   else
  266.     go "boat"
  267.   end if
  268.   
  269. on c2w4
  270.   global tack30a
  271.   if tack30a = 2 then
  272.     go "ready"
  273.   else
  274.     go "boat"
  275.   end if 
  276.   
  277. on c2w4alt   -- "Q1"
  278.   global mode, crash30a, Prow30a
  279.   set crash30a = 1
  280.   if Prow30a = 0 then
  281.     set Prow30a = 1
  282.   else if Prow30a = 1 then  
  283.     set Prow30a = 2
  284.   end if
  285.   set mode = 1
  286.   set the castNum of sprite 24 to the number of cast ("control" & string(mode))
  287.   cursor (500 + mode)
  288.   updateStage
  289.   go "boat" 
  290.   
  291. on w5
  292.   global mode
  293.   if mode = 0 or mode = 1 then
  294.     go "w*boat"
  295.   else if mode = 3 then   
  296.     lookitem "Looks like a boat"
  297.   end if
  298.   
  299. on w6
  300.   global mode, cont
  301.   if mode = 3 then   
  302.     lookitem "Looks like the prow"
  303.   end if
  304.   
  305. on w7
  306.   global mode, cont, invcurrent
  307.   if mode = 1 or mode = 2 then
  308.     set cont = 3
  309.     go "w*boat"
  310.   else if mode = 4 and invcurrent = "h30a" then
  311.     set cont = 4
  312.     go "w*boat"
  313.   else if mode = 3 then   
  314.     lookitem "Looks like a bird"
  315.   end if
  316.   
  317. on w8
  318.   global mode, invcurrent, tack30a, crash30a, cont
  319.   if mode = 4 and invcurrent = "h30a" then
  320.     set tack30a = 2  
  321.     if crash30a <> 21 then
  322.       set crash30a = 20
  323.     end if
  324.     set cont = 5
  325.     go "w*boat"
  326.   else if mode = 3 then   
  327.     lookitem "Looks like a gap"
  328.   end if
  329.   
  330.   
  331.   
  332.   
  333. on b1
  334.   global mode
  335.   if mode = 3 then   
  336.     bk
  337.   end if
  338.   
  339. on b2
  340.   global mode, tack30a
  341.   if mode = 1 then
  342.     if tack30a = 0 then
  343.       go "get hardtack"
  344.     else if tack30a > 0 then
  345.       lookitem "The barrel is empty"
  346.     end if           
  347.   else if mode = 3 then   
  348.     if tack30a > 0 then
  349.       lookitem "The barrel is empty"
  350.     else  
  351.       lookitem "Looks like a barrel of hardtack"
  352.     end if
  353.   end if
  354.   
  355. on b4
  356.   global mode, cont
  357.   if mode = 2 then
  358.     set cont = 1
  359.     go "barrel*boat"
  360.   else if mode = 3 then   
  361.     lookitem "Looks like a sailor"
  362.   end if
  363.   
  364. on b5
  365.   global mode
  366.   if mode = 0 or mode = 1 then
  367.     go "barrel*boat"
  368.   else if mode = 3 then   
  369.     lookitem "Looks like a boat"
  370.   end if
  371.   
  372. on b6
  373.   global mode, cont
  374.   if mode = 3 then   
  375.     lookitem "Looks like the prow"
  376.   end if
  377.   
  378. on b7
  379.   global mode, cont, invcurrent
  380.   if mode = 1 or mode = 2 then
  381.     set cont = 3
  382.     go "barrel*boat"
  383.   else if mode = 4 and invcurrent = "h30a" then
  384.     set cont = 4
  385.     go "barrel*boat"
  386.   else if mode = 3 then   
  387.     lookitem "Looks like a bird"
  388.   end if
  389.   
  390. on b8
  391.   global mode, invcurrent, tack30a, crash30a, cont
  392.   if mode = 4 and invcurrent = "h30a" then
  393.     set tack30a = 2  
  394.     if crash30a <> 21 then
  395.       set crash30a = 20
  396.     end if
  397.     set cont = 5
  398.     go "barrel*boat"
  399.   else if mode = 3 then   
  400.     lookitem "Looks like a gap"
  401.   end if
  402.   
  403.   
  404.   
  405.   
  406. on s1
  407.   global mode
  408.   if mode = 3 then   
  409.     bk
  410.   end if
  411.   
  412. on s2
  413.   global mode, cont, tack30a
  414.   if mode = 0 then
  415.     go "boat*barrel"
  416.   else if mode = 1 then
  417.     if tack30a = 0 then
  418.       set cont = 1
  419.       go "boat*barrel"
  420.     else if tack30a > 0 then
  421.       lookitem "The barrel is empty"
  422.     end if            
  423.   else if mode = 3 then   
  424.     if tack30a > 0 then
  425.       lookitem "The barrel is empty"
  426.     else  
  427.       lookitem "Looks like a barrel of hardtack"
  428.     end if
  429.   end if
  430.   
  431. on cs2
  432.   global cont
  433.   if cont = 1 then
  434.     set cont = 0
  435.     go "get hardtack"
  436.   else
  437.     go "barrel"
  438.   end if
  439.   
  440. on s2alt
  441.   global mode
  442.   if mode = 0 then
  443.     go "boat*barrel"          
  444.   else if mode = 3 then   
  445.     bk
  446.   end if
  447.   
  448. on s4
  449.   global mode, crash30a
  450.   if mode = 2 then
  451.     if crash30a < 2 then 
  452.       go "Q1"  
  453.     else if (crash30a > 1) and not (crash30a >= 20) then
  454.       go "Q3"
  455.     else if crash30a >=  20 then
  456.       go "Q4"
  457.     end if
  458.   else if mode = 3 then   
  459.     lookitem "Looks like a sailor"
  460.   end if
  461.   
  462. on s5
  463.   global mode, tack30a, invOff, doom30a
  464.   if mode = 1 then
  465.     if tack30a < 2 then
  466.       if doom30a = 0 then
  467.         set doom30a = 1
  468.       end if
  469.       go "row"
  470.     else if tack30a = 2 then
  471.       set invOff = 1
  472.       set tack30a = 1
  473.       go "row2"
  474.     end if
  475.   else if mode = 3 then   
  476.     lookitem "Looks like a boat"
  477.   end if
  478.   
  479. on cs5
  480.   global crash30a, invoff
  481.   if crash30a = 1 then  
  482.     set crash30a = 2
  483.   else if crash30a = 2 then
  484.     set crash30a = 3
  485.   else if crash30a = 3 then
  486.     set crash30a = 4
  487.   end if
  488.   set the castnum of sprite 24 to 0
  489.   set invoff = 1
  490.   killinventory
  491.   go "Olympus"
  492.   
  493. on cs5alt
  494.   go the frame
  495.   
  496. on s6
  497.   global mode, cont
  498.   if mode = 3 then   
  499.     lookitem "Looks like the prow"
  500.   end if
  501.   
  502. on s7
  503.   global mode, invcurrent
  504.   if mode = 1 or mode = 2 then
  505.     go "shoo bird"
  506.   else if mode = 4 and invcurrent = "h30a" then
  507.     doSound "grabInventory"
  508.     go "feed bird"
  509.   else if mode = 3 then   
  510.     lookitem "Looks like a bird"
  511.   end if
  512.   
  513. on s8
  514.   global mode, invcurrent, tack30a, crash30a
  515.   if mode = 0 then
  516.     if tack30a < 2 then
  517.       go "row"
  518.     else if tack30a = 2 then
  519.       set invOff = 1
  520.       set tack30a = 1
  521.       go "row2"
  522.     end if
  523.   else if mode = 4 and invcurrent = "h30a" then
  524.     set tack30a = 2  
  525.     if crash30a <> 21 then
  526.       set crash30a = 20
  527.     end if
  528.     doSound "grabInventory"
  529.     go "throw cake"
  530.   else if mode = 3 then   
  531.     lookitem "Looks like a gap"
  532.   end if
  533.   
  534. on cs8
  535.   global mode, invoff
  536.   set mode = 1
  537.   set the castNum of sprite 24 to the number of cast ("control" & string(mode))
  538.   cursor (500 + mode)
  539.   -- go "ready"
  540.   set invoff = 1
  541.   killinventory
  542.   go "row2"
  543.   
  544.   
  545.   
  546.   
  547. on r2
  548.   global mode
  549.   if mode = 3 then   
  550.     lookitem "Looks like a barrel of hardtack"
  551.   end if 
  552.   
  553. on r8
  554.   global mode, tack30a, invOff
  555.   if mode = 0 then
  556.     if tack30a < 2 then
  557.       go "row"
  558.     else if tack30a = 2 then
  559.       set invOff = 1
  560.       set tack30a = 1
  561.       go "row2"
  562.     end if
  563.   else if mode = 3 then   
  564.     lookitem "Looks like a gap"
  565.   end if
  566.   
  567.   
  568.   
  569.   
  570. on bonus 
  571.   global crash30a
  572.   if crash30a = 20 then
  573.     set crash30a = 21
  574.     calcScore2 + 50
  575.     lookitem2 "50 bonus points!"
  576.   end if
  577.   
  578. on lookItem2 theRap
  579.   set the text of cast "lookRap" to theRap
  580.   set the textFont of field "lookRap" to "ercolano"
  581.   set the type of sprite 19 to 16
  582.   set the ink of sprite 19 to 36
  583.   set the castNum of sprite 19 to the number of cast "lookRap"
  584.   updateStage
  585.   set tt = the ticks
  586.   repeat while tt + 150 > the ticks
  587.     nothing
  588.   end repeat   
  589.   set the castNum of sprite 19 to the number of cast "placeHolder"
  590.   updateStage
  591.   
  592. on invOn
  593.   global invOff
  594.   set invOff = 0
  595.   
  596.   
  597.   
  598.   
  599.   
  600. on ZeusHint  
  601.   global Prow30a
  602.   if Prow30a < 2 then
  603.     go "Q20"
  604.   else if Prow30a >=  2 and Prow30a < 8 then
  605.     go "Q30"
  606.   else if Prow30a = 8 then
  607.     go "Q40"
  608.   end if
  609.   
  610. on hintDone  
  611.   go "fade out2"
  612.   
  613. on cHintDone  
  614.   global mode
  615.   go "in from Olympus"
  616.   setglobalall
  617.